<?php
//登录
Route::group(['namespace' => 'Auth'], function(){
    Route::get('login', 'LoginController@index');
    Route::post('login', 'LoginController@login');
});

//框架页面
Route::group(['middleware' => ['auth']], function(){
    Route::get('/', 'IndexController@index');
});

//用户信息
Route::group(['middleware' => ['auth'], 'namespace' => 'Auth'], function(){
    Route::get('user', 'UserCenterController@user');
    Route::get('permission', 'UserCenterController@permission');
    Route::post('editProfile', 'UserCenterController@editProfile');
    Route::post('resetPassword', 'UserCenterController@resetPassword');
    Route::post('logout', 'UserCenterController@logout');
});

//公共服务接口
Route::group([], function(){
    Route::get('getQiniuUploadToken', 'Upload\QiniuController@getToken');//获取token
});

//数据模型接口
Route::group(['middleware' => ['auth']], function(){
    Route::get('admin/access/operationGroup/all', 'Access\OperationGroupController@all');//全部操作分组
    Route::get('admin/cabinet/factory/all', 'Cabinet\CabinetFactoryController@all');//全部货柜供应商
    Route::get('admin/cabinet/cabinet/all', 'Cabinet\CabinetController@all');//全部货柜
    Route::get('admin/cabinet/cell/all', 'Cabinet\CabinetCellController@all');//全部行列
    Route::get('admin/cabinet/type/all', 'Cabinet\CabinetTypeController@all');//全部类型
    Route::get('admin/finance/price/all', 'Finance\PriceController@all');//全部定价
    Route::get('admin/goods/goods/all', 'Goods\GoodsController@all');//全部商品
    Route::get('admin/enterprise/enterprise/all', 'Enterprise\EnterpriseController@all');//全部企业
    Route::get('admin/supplier/supplier/all', 'Supplier\SupplierController@all');//全部商品供应商
    Route::get('admin/goods/goodstype/all', 'Goods\GoodsTypeController@all');//全部商品类型管理
    Route::get('admin/goods/jmschedule/all', 'Goods\JmScheduleController@all');//全部极妙区
    Route::get('admin/user/user/all', 'User\UserController@all');//全部用户
    Route::get('admin/card/card/all', 'Card\CardController@all');//全部卡劵
    Route::get('admin/orders/orders/all', 'Orders\OrdersController@all');//全部订单
    Route::get('admin/experience/experience/all', 'Experience\ExperienceController@all');//全部体验
    Route::get('admin/storefront/storefront/all', 'Storefront\StorefrontController@all');//全部店铺
    Route::get('admin/logistics/delivers/all', 'Logistics\DeliversController@all');//全部快递
    Route::get('admin/client/client/mySellers', 'Client\ClientController@mySellers');//我权限范围内的销售员
    Route::get('admin/seller/agent/my', 'Seller\AgentController@my');//销售主管
    Route::get('admin/access/user/sellerManagers', 'Access\UserController@sellerManagers');//销售主管
    
});

//货柜管理-厂商管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/cabinet/factory', 'namespace' => 'Cabinet'], function(){
    Route::get('lists', 'CabinetFactoryController@lists');//列表
    Route::get('detail', 'CabinetFactoryController@detail');//详情
    Route::post('create', 'CabinetFactoryController@create');//添加
    Route::post('update', 'CabinetFactoryController@update');//编辑
    Route::post('delete', 'CabinetFactoryController@delete');//删除
    Route::post('multiDelete', 'CabinetFactoryController@multiDelete');//批量删除
    Route::get('getOpLogs', 'CabinetFactoryController@getOpLogs');//操作日志
});
//货柜管理-货柜型号
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/cabinet/type', 'namespace' => 'Cabinet'], function(){
    Route::get('lists', 'CabinetTypeController@lists');//列表
    Route::get('detail', 'CabinetTypeController@detail');//详情
    Route::post('create', 'CabinetTypeController@create');//添加
    Route::post('update', 'CabinetTypeController@update');//编辑
    Route::post('delete', 'CabinetTypeController@delete');//删除
    Route::post('online', 'CabinetTypeController@online');//上线
    Route::post('offline', 'CabinetTypeController@offline');//下线
    Route::post('multiOnline', 'CabinetTypeController@multiOnline');//批量上线
    Route::post('multiOffline', 'CabinetTypeController@multiOffline');//批量下线
    Route::post('multiDelete', 'CabinetTypeController@multiDelete');//批量删除
    Route::get('getOpLogs', 'CabinetTypeController@getOpLogs');//操作日志
});
//货柜管理-货柜管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/cabinet/cabinet', 'namespace' => 'Cabinet'], function(){
    Route::get('lists', 'CabinetController@lists');//列表
    Route::get('detail', 'CabinetController@detail');//详情
    Route::post('create', 'CabinetController@create');//添加
    Route::post('update', 'CabinetController@update');//编辑
    Route::post('delete', 'CabinetController@delete');//删除
    Route::post('open', 'CabinetController@open');//激活
    Route::post('close', 'CabinetController@close');//禁用
    Route::post('need', 'CabinetController@need');//交押金
    Route::post('notneed', 'CabinetController@notneed');//不交押金
    Route::post('multiOpen', 'CabinetController@multiOpen');//批量开启
    Route::post('multiClose', 'CabinetController@multiClose');//批量禁用
    Route::post('multiDelete', 'CabinetController@multiDelete');//批量删除
    Route::get('getOpLogs', 'CabinetController@getOpLogs');//操作日志
});
//货柜管理-格子管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/cabinet/cell', 'namespace' => 'Cabinet'], function(){
    Route::get('lists', 'CabinetCellController@lists');//列表
    Route::get('detail', 'CabinetCellController@detail');//详情
    Route::post('create', 'CabinetCellController@create');//添加
    Route::post('update', 'CabinetCellController@update');//编辑
    Route::post('delete', 'CabinetCellController@delete');//删除
    Route::post('renting', 'CabinetCellController@renting');//租用
    Route::post('rented', 'CabinetCellController@rented');//归还
    Route::post('repair', 'CabinetCellController@repair');//报修
    Route::post('replace', 'CabinetCellController@replace');//修复
    Route::post('multiRenting', 'CabinetCellController@multiRenting');//批量租用
    Route::post('multiRented', 'CabinetCellController@multiRented');//批量归还
    Route::post('multiRepair', 'CabinetCellController@multiRepair');// 批量报修
    Route::post('multiReplace', 'CabinetCellController@multiReplace');//批量修复
    Route::post('multiDelete', 'CabinetCellController@multiDelete');//批量删除
    Route::get('getOpLogs', 'CabinetCellController@getOpLogs');//操作日志
});

//店面管理-店面管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/storefront/storefront', 'namespace' => 'Storefront'], function(){
    Route::get('lists', 'StorefrontController@lists');//列表
    Route::get('detail', 'StorefrontController@detail');//详情
    Route::post('create', 'StorefrontController@create');//添加
    Route::post('update', 'StorefrontController@update');//编辑
    Route::post('delete', 'StorefrontController@delete');//删除
    Route::post('online', 'StorefrontController@online');//上线
    Route::post('offline', 'StorefrontController@offline');//下线
    Route::post('multiOnline', 'StorefrontController@multiOnline');//批量上线
    Route::post('multiOffline', 'StorefrontController@multiOffline');//批量下线
    Route::post('multiDelete', 'StorefrontController@multiDelete');//批量删除
    Route::get('getOpLogs', 'StorefrontController@getOpLogs');//操作日志
});
//店面管理-店面排期
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/storefront/schedule', 'namespace' => 'Storefront'], function(){
    Route::get('lists', 'ScheduleController@lists');//列表
    Route::get('detail', 'ScheduleController@detail');//详情
    Route::post('create', 'ScheduleController@create');//添加
    Route::post('update', 'ScheduleController@update');//编辑
    Route::post('offline', 'ScheduleController@offline');//下线
    Route::post('updateGoodJsonFeild', 'ScheduleController@updateGoodJsonFeild');//编辑商品排期 goods_json 字段
    Route::post('applicationx', 'ScheduleController@applicationx');//应用
    Route::post('delete', 'ScheduleController@delete');//删除
    Route::post('multiDelete', 'ScheduleController@multiDelete');//批量删除
    Route::get('getOpLogs', 'ScheduleController@getOpLogs');//操作日志
});

//企业管理-企业管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/enterprise/enterprise', 'namespace' => 'Enterprise'], function(){
    Route::get('lists', 'EnterpriseController@lists');//列表
    Route::get('detail', 'EnterpriseController@detail');//详情
    Route::post('create', 'EnterpriseController@create');//添加
    Route::post('update', 'EnterpriseController@update');//编辑
    Route::post('delete', 'EnterpriseController@delete');//删除
    Route::post('open', 'EnterpriseController@open');//开启
    Route::post('close', 'EnterpriseController@close');//关闭
    Route::post('multiDelete', 'EnterpriseController@multiDelete');//批量删除
    Route::get('getOpLogs', 'EnterpriseController@getOpLogs');//操作日志
});
//企业管理-员工管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/enterprise/personnel', 'namespace' => 'Enterprise'], function(){
    Route::get('lists', 'PersonnelController@lists');//列表
    Route::get('detail', 'PersonnelController@detail');//详情
    Route::post('create', 'PersonnelController@create');//添加
    Route::post('update', 'PersonnelController@update');//编辑
    Route::post('delete', 'PersonnelController@delete');//删除
    Route::post('importCheck', 'PersonnelController@importCheck');//导入表格
    Route::post('multiDelete', 'PersonnelController@multiDelete');//批量删除
    Route::get('getOpLogs', 'PersonnelController@getOpLogs');//操作日志
});

//商品管理-商品管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/goods/goods', 'namespace' => 'Goods'], function(){
    Route::get('lists', 'GoodsController@lists');//列表
    Route::get('newlists', 'GoodsController@newlists');//新列表
    Route::get('detail', 'GoodsController@detail');//详情
    Route::post('create', 'GoodsController@create');//添加
    Route::post('update', 'GoodsController@update');//编辑
    Route::post('delete', 'GoodsController@delete');//删除
    Route::post('multiDelete', 'GoodsController@multiDelete');//批量删除
    Route::post('online', 'GoodsController@online');//上线
    Route::post('offline', 'GoodsController@offline');//下线
    Route::post('sort', 'GoodsController@sort');//排序
    Route::get('multiExport', 'GoodsController@multiExport');//导出
    Route::post('multiOnline', 'GoodsController@multiOnline');//批量上线
    Route::post('multiOffline', 'GoodsController@multiOffline');//批量下线
    Route::get('getOpLogs', 'GoodsController@getOpLogs');//操作日志
});
//商品管理-品牌管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/goods/brand', 'namespace' => 'Goods'], function(){
    Route::get('lists', 'BrandController@lists');//列表
    Route::get('detail', 'BrandController@detail');//详情
    Route::post('create', 'BrandController@create');//添加
    Route::post('update', 'BrandController@update');//编辑
    Route::post('delete', 'BrandController@delete');//删除
    Route::post('open', 'BrandController@open');//开启
    Route::post('close', 'BrandController@close');//关闭
    Route::post('multiDelete', 'BrandController@multiDelete');//批量删除
    Route::get('getOpLogs', 'BrandController@getOpLogs');//操作日志
});
//商品管理-商品分类
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/goods/goodstype', 'namespace' => 'Goods'], function(){
    Route::get('lists', 'GoodsTypeController@lists');//列表
    Route::get('detail', 'GoodsTypeController@detail');//详情
    Route::post('create', 'GoodsTypeController@create');//添加
    Route::post('update', 'GoodsTypeController@update');//编辑
    Route::post('delete', 'GoodsTypeController@delete');//删除
    Route::post('online', 'GoodsTypeController@online');//上线
    Route::post('offline', 'GoodsTypeController@offline');//下线
    Route::post('sort', 'GoodsTypeController@sort');//排序
    Route::post('multiDelete', 'GoodsTypeController@multiDelete');//批量删除
});
//商品管理-极秒排期
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/goods/jmschedule', 'namespace' => 'Goods'], function(){
    Route::get('lists', 'JmScheduleController@lists');//列表
    Route::get('detail', 'JmScheduleController@detail');//详情
    Route::post('create', 'JmScheduleController@create');//添加
    Route::post('update', 'JmScheduleController@update');//编辑
    Route::post('delete', 'JmScheduleController@delete');//删除
    Route::post('againonline', 'JmScheduleController@againonline');//再次上线
    Route::post('online', 'JmScheduleController@online');//上线
    Route::post('offline', 'JmScheduleController@offline');//下线
    Route::post('multiDelete', 'JmScheduleController@multiDelete');//批量删除
    Route::get('getOpLogs', 'JmScheduleController@getOpLogs');//操作日志
});
//商品管理-极秒区商品
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/goods/gsjmschedule', 'namespace' => 'Goods'], function(){
    Route::get('lists', 'GsJmScheduleController@lists');//列表
    Route::get('detail', 'GsJmScheduleController@detail');//详情
    Route::post('create', 'GsJmScheduleController@create');//添加
    Route::post('update', 'GsJmScheduleController@update');//编辑
    Route::post('delete', 'GsJmScheduleController@delete');//删除
    Route::post('sort', 'GsJmScheduleController@sort');//排序
    Route::post('multiDelete', 'GsJmScheduleController@multiDelete');//批量删除
});
//商品管理-专题排期
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/goods/jmtheme', 'namespace' => 'Goods'], function(){
    Route::get('lists', 'JmThemeController@lists');//列表
    Route::get('detail', 'JmThemeController@detail');//详情
    Route::post('create', 'JmThemeController@create');//添加
    Route::post('update', 'JmThemeController@update');//编辑
    Route::post('delete', 'JmThemeController@delete');//删除
    Route::post('sort', 'JmThemeController@sort');//排序
    Route::post('online', 'JmThemeController@online');//上线
    Route::post('offline', 'JmThemeController@offline');//下线
    Route::post('multiDelete', 'JmThemeController@multiDelete');//批量删除
    Route::get('getOpLogs', 'JmThemeController@getOpLogs');//操作日志
});
//商品管理-专题区商品
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/goods/jmthemegoods', 'namespace' => 'Goods'], function(){
    Route::get('lists', 'JmThemeGoodsController@lists');//列表
    Route::get('detail', 'JmThemeGoodsController@detail');//详情
    Route::post('create', 'JmThemeGoodsController@create');//添加
    Route::post('update', 'JmThemeGoodsController@update');//编辑
    Route::post('delete', 'JmThemeGoodsController@delete');//删除
    Route::post('multiChangeCategory', 'JmThemeGoodsController@multiChangeCategory');//批量添加
    Route::post('sort', 'JmThemeGoodsController@sort');//排序
    Route::post('multiDelete', 'JmThemeGoodsController@multiDelete');//批量删除
});
//商品管理-分区排期
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/goods/jmpartition', 'namespace' => 'Goods'], function(){
    Route::get('lists', 'JmPartitionController@lists');//列表
    Route::get('detail', 'JmPartitionController@detail');//详情
    Route::post('create', 'JmPartitionController@create');//添加
    Route::post('update', 'JmPartitionController@update');//编辑
    Route::post('delete', 'JmPartitionController@delete');//删除
    Route::post('sort', 'JmPartitionController@sort');//排序
    Route::post('online', 'JmPartitionController@online');//上线
    Route::post('offline', 'JmPartitionController@offline');//下线
    Route::post('multiDelete', 'JmPartitionController@multiDelete');//批量删除
    Route::get('getOpLogs', 'JmPartitionController@getOpLogs');//操作日志
});
//商品管理-分区区商品
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/goods/jmpartitiongoods', 'namespace' => 'Goods'], function(){
    Route::get('lists', 'JmPartitionGoodsController@lists');//列表
    Route::get('detail', 'JmPartitionGoodsController@detail');//详情
    Route::post('create', 'JmPartitionGoodsController@create');//添加
    Route::post('update', 'JmPartitionGoodsController@update');//编辑
    Route::post('delete', 'JmPartitionGoodsController@delete');//删除
    Route::post('multiChangeCategory', 'JmPartitionGoodsController@multiChangeCategory');//批量添加
    Route::post('sort', 'JmPartitionGoodsController@sort');//排序
    Route::post('multiDelete', 'JmPartitionGoodsController@multiDelete');//批量删除
});

//物流管理-物流管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/logistics/logistics', 'namespace' => 'Logistics'], function(){
    Route::get('lists', 'LogisticsController@lists');//列表
    Route::get('detail', 'LogisticsController@detail');//详情
    Route::post('create', 'LogisticsController@create');//添加
    Route::post('update', 'LogisticsController@update');//编辑
    Route::post('delete', 'LogisticsController@delete');//删除
    Route::post('multiDelete', 'LogisticsController@multiDelete');//批量删除
    Route::get('getOpLogs', 'LogisticsController@getOpLogs');//操作日志
});
//物流管理-快递管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/logistics/delivers', 'namespace' => 'Logistics'], function(){
    Route::get('lists', 'DeliversController@lists');//列表
    Route::post('delete', 'DeliversController@delete');//删除
    Route::post('multiDelete', 'DeliversController@multiDelete');//批量删除
    Route::get('getOpLogs', 'DeliversController@getOpLogs');//操作日志
});

//供应商管理-供应商列表
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/supplier/supplier', 'namespace' => 'Supplier'], function(){
    Route::get('lists', 'SupplierController@lists');//列表
    Route::get('detail', 'SupplierController@detail');//详情
    Route::post('create', 'SupplierController@create');//添加
    Route::post('update', 'SupplierController@update');//编辑
    Route::post('delete', 'SupplierController@delete');//删除
    Route::post('multiDelete', 'SupplierController@multiDelete');//批量删除
    Route::post('open', 'SupplierController@open');//开启
    Route::post('close', 'SupplierController@close');//禁用
    Route::post('resetPassword', 'SupplierController@resetPassword');//重置密码
    Route::get('getOpLogs', 'SupplierController@getOpLogs');//操作日志
});

//用户管理-用户列表
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/user/user', 'namespace' => 'User'], function(){
    Route::get('lists', 'UserController@lists');//列表
    Route::get('detail', 'UserController@detail');//详情
    Route::post('update', 'UserController@update');//编辑
    Route::post('delete', 'UserController@delete');//删除
    Route::post('multiDelete', 'UserController@multiDelete');//批量删除
    Route::post('open', 'UserController@open');//开启
    Route::post('close', 'UserController@close');//禁用
    Route::post('multiOpen', 'UserController@multiOpen');//批量开启
    Route::post('multiClose', 'UserController@multiClose');//批量关闭
    Route::get('getOpLogs', 'UserController@getOpLogs');//操作日志
});

//订单管理-订单管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/orders/orders', 'namespace' => 'Orders'], function(){
    Route::get('lists', 'OrdersController@lists');//列表
    Route::get('detail', 'OrdersController@detail');//详情
    Route::post('update', 'OrdersController@update');//编辑
    Route::post('delete', 'OrdersController@delete');//删除
    Route::post('complete', 'OrdersController@complete');//订单完成
    Route::post('createlogistics', 'OrdersController@createlogistics');//给订单添加相应的运单号
    Route::post('multiDelete', 'OrdersController@multiDelete');//批量删除
    Route::get('getOpLogs', 'OrdersController@getOpLogs');//操作日志
});
//订单管理-商城订单
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/orders/shopping', 'namespace' => 'Orders'], function(){
    Route::get('lists', 'ShoppingController@lists');//列表
    Route::post('delete', 'ShoppingController@delete');//删除
    Route::get('multiExport', 'ShoppingController@multiExport');//导出
    Route::post('createlogistics', 'ShoppingController@createlogistics');//给订单添加相应的运单号
    Route::post('multiDelete', 'ShoppingController@multiDelete');//批量删除
});
//订单管理-订单售后
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/orders/aftersale', 'namespace' => 'Orders'], function(){
    Route::get('lists', 'AfterSaleController@lists');//列表
    Route::get('detail', 'AfterSaleController@detail');//详情
    Route::post('delete', 'AfterSaleController@delete');//删除
    Route::post('adopt', 'AfterSaleController@adopt');//通过
    Route::post('reject', 'AfterSaleController@reject');//驳回
    Route::post('wxrefund', 'AfterSaleController@wxrefund');//退款
    Route::post('createlogistics', 'AfterSaleController@createlogistics');//给换货订单添加相应的运单号
    Route::post('multiDelete', 'AfterSaleController@multiDelete');//批量删除
    Route::get('getOpLogs', 'AfterSaleController@getOpLogs');//操作日志
});

//财务管理-定价管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/finance/price', 'namespace' => 'Finance'], function(){
    Route::get('lists', 'PriceController@lists');//列表
    Route::get('detail', 'PriceController@detail');//详情
    Route::post('create', 'PriceController@create');//添加
    Route::post('update', 'PriceController@update');//编辑
    Route::post('delete', 'PriceController@delete');//删除
    Route::post('multiDelete', 'PriceController@multiDelete');//批量删除
    Route::get('getOpLogs', 'PriceController@getOpLogs');//操作日志
});
//财务管理-发票管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/finance/invoice', 'namespace' => 'Finance'], function(){
    Route::get('lists', 'InvoiceController@lists');//列表
    Route::get('detail', 'InvoiceController@detail');//详情
    Route::post('delete', 'InvoiceController@delete');//删除
    Route::post('multiDelete', 'InvoiceController@multiDelete');//批量删除
    Route::get('getOpLogs', 'InvoiceController@getOpLogs');//操作日志
});

//报修管理-报修申请
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/apply/repair', 'namespace' => 'Apply'], function(){
    Route::get('lists', 'RepairController@lists');//列表
    Route::get('detail', 'RepairController@detail');//详情
    Route::post('create', 'RepairController@create');//添加
    Route::post('update', 'RepairController@update');//修改
    Route::post('delete', 'RepairController@delete');//删除
    Route::post('finish', 'RepairController@finish');//已确认
    Route::post('finied', 'RepairController@finied');//已处理
    Route::post('multiFinish', 'RepairController@multiFinish');//批量确认
    Route::post('multiFinied', 'RepairController@multiFinied');//批量处理
    Route::post('multiDelete', 'RepairController@multiDelete');//批量删除
    Route::get('getOpLogs', 'RepairController@getOpLogs');//操作日志
});

//消息模版管理-消息发送
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/template/message', 'namespace' => 'Template'], function(){
    Route::get('lists', 'MessageController@lists');//列表
    Route::get('detail', 'MessageController@detail');//详情
    Route::post('create', 'MessageController@create');//添加
    Route::post('update', 'MessageController@update');//修改
    Route::post('delete', 'MessageController@delete');//删除
    Route::get('message', 'MessageController@message');//给全部用户推送消息
    Route::post('selectuser', 'MessageController@selectuser');//选择用户
    Route::post('sendMessage', 'MessageController@sendMessage');//给部分用户推送消息
    Route::post('multiDelete', 'MessageController@multiDelete');//批量删除
    Route::get('getOpLogs', 'MessageController@getOpLogs');//操作日志
});

//卡劵管理-卡劵管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/card/card', 'namespace' => 'Card'], function(){
    Route::get('lists', 'CardController@lists');//列表
    Route::get('detail', 'CardController@detail');//详情
    Route::post('create', 'CardController@create');//添加
    Route::post('update', 'CardController@update');//修改
    Route::post('delete', 'CardController@delete');//删除
    Route::post('multiDelete', 'CardController@multiDelete');//批量删除
});
//卡劵管理-充值记录
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/card/recharge', 'namespace' => 'Card'], function(){
    Route::get('lists', 'RechargeController@lists');//列表
    Route::get('detail', 'RechargeController@detail');//详情
    Route::post('create', 'RechargeController@create');//添加
    Route::post('update', 'RechargeController@update');//修改
    Route::post('delete', 'RechargeController@delete');//删除
    Route::post('rechargecard', 'RechargeController@rechargecard');//充值
    Route::post('multiDelete', 'RechargeController@multiDelete');//批量删除
});

//数据统计-体验记录
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/experience/experience', 'namespace' => 'Experience'], function(){
    Route::get('lists', 'ExperienceController@lists');//列表
    Route::post('delete', 'ExperienceController@delete');//删除
    Route::post('checked', 'ExperienceController@checked');//完成
    Route::post('checking', 'ExperienceController@checking');//回滚
    Route::post('solve', 'ExperienceController@solve');//已解决
    Route::post('multiDelete', 'ExperienceController@multiDelete');//批量删除
});
//数据统计-订单报表
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/experience/stats', 'namespace' => 'Experience'], function(){
    Route::get('index', 'StatsController@index');//订单报表
});
//数据统计-美文推荐
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/experience/enter', 'namespace' => 'Experience'], function(){
    Route::get('lists', 'EnterController@lists');//列表
    Route::get('detail', 'EnterController@detail');//详情
    Route::post('create', 'EnterController@create');//添加
    Route::post('update', 'EnterController@update');//修改
    Route::post('delete', 'EnterController@delete');//删除
    Route::post('sort', 'EnterController@sort');//排序
    Route::post('creategoods', 'EnterController@creategoods');//关联商品
    Route::post('multiDelete', 'EnterController@multiDelete');//批量删除
});

//反馈管理-意见反馈
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/feedback/feedback', 'namespace' => 'Feedback'], function(){
    Route::get('lists', 'FeedbackController@lists');//列表
    Route::get('detail', 'FeedbackController@detail');//详情
    Route::post('create', 'FeedbackController@create');//添加
    Route::post('update', 'FeedbackController@update');//编辑
    Route::post('delete', 'FeedbackController@delete');//删除
    Route::post('multiDelete', 'FeedbackController@multiDelete');//批量删除
    Route::post('finish', 'FeedbackController@finish');//完成处理
    Route::post('finied', 'FeedbackController@finied');//回滚
    Route::post('multiFinish', 'FeedbackController@multiFinish');//批量完成处理
    Route::post('multiFinied', 'FeedbackController@multiFinied');//批量回滚
    Route::get('getOpLogs', 'FeedbackController@getOpLogs');//操作日志
});

//官网管理-反馈信息
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/website/websiteFb', 'namespace' => 'Website'], function(){
    Route::get('lists', 'WebsiteFbController@lists');//列表
    Route::get('detail', 'WebsiteFbController@detail');//详情
    Route::post('delete', 'WebsiteFbController@delete');//删除
    Route::post('active', 'WebsiteFbController@active');//处理
    Route::post('actived', 'WebsiteFbController@actived');//回滚
    Route::post('multiActive', 'WebsiteFbController@multiActive');//批量处理
    Route::post('multiActived', 'WebsiteFbController@multiActived');//批量回滚
    Route::post('multiDelete', 'WebsiteFbController@multiDelete');//批量删除
    Route::get('getOpLogs', 'WebsiteFbController@getOpLogs');//操作日志
});


//权限管理-用户管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/access/user', 'namespace' => 'Access'], function(){
    Route::get('lists', 'UserController@lists');//列表
    Route::get('detail', 'UserController@detail');//详情
    Route::post('create', 'UserController@create');//添加
    Route::post('update', 'UserController@update');//编辑
    Route::post('delete', 'UserController@delete');//删除
    Route::post('multiDelete', 'UserController@multiDelete');//批量删除
    Route::post('open', 'UserController@open');//开启
    Route::post('close', 'UserController@close');//关闭
    Route::post('multiOpen', 'UserController@multiOpen');//批量开启
    Route::post('multiClose', 'UserController@multiClose');//批量关闭
    Route::post('resetPassword', 'UserController@resetPassword');//重置密码
    Route::get('getWithRole', 'UserController@getWithRole');//获取权限
    Route::post('changeRole', 'UserController@changeRole');//修改权限
    Route::get('getOpLogs', 'UserController@getOpLogs');//操作日志
});
//权限管理-角色管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/access/role', 'namespace' => 'Access'], function(){
    Route::get('lists', 'RoleController@lists');//列表
    Route::get('detail', 'RoleController@detail');//详情
    Route::post('create', 'RoleController@create');//添加
    Route::post('update', 'RoleController@update');//编辑
    Route::post('delete', 'RoleController@delete');//删除
    Route::post('multiDelete', 'RoleController@multiDelete');//批量删除
    Route::get('getOperations', 'RoleController@getOperations');//获取操作
    Route::post('changeOperations', 'RoleController@changeOperations');//修改操作
    Route::get('getOpLogs', 'RoleController@getOpLogs');//操作日志
});
//权限管理-操作分组
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/access/operationGroup', 'namespace' => 'Access'], function(){
    Route::get('lists', 'OperationGroupController@lists');//列表
    Route::get('detail', 'OperationGroupController@detail');//详情
    Route::post('create', 'OperationGroupController@create');//添加
    Route::post('update', 'OperationGroupController@update');//编辑
    Route::post('delete', 'OperationGroupController@delete');//删除
    Route::post('multiDelete', 'OperationGroupController@multiDelete');//批量删除
});
//权限管理-操作管理
Route::group(['middleware' => ['auth', 'permission'], 'prefix' => 'admin/access/operation', 'namespace' => 'Access'], function(){
    Route::get('lists', 'OperationController@lists');//列表
    Route::get('detail', 'OperationController@detail');//详情
    Route::post('create', 'OperationController@create');//添加
    Route::post('update', 'OperationController@update');//编辑
    Route::post('delete', 'OperationController@delete');//删除
    Route::post('multiDelete', 'OperationController@multiDelete');//批量删除
    Route::post('multiAdd', 'OperationController@multiAdd');//批量添加
});